﻿using System.ServiceModel;

namespace XchangeStreamer.Server
{
    [ServiceContract(CallbackContract = typeof(INotification), SessionMode = SessionMode.Required)]
    public interface ISubscriber
    {
        [OperationContract(IsOneWay = false, IsInitiating = true)]
        void Subscribe(int topicId);

        [OperationContract(IsOneWay = false, IsTerminating = true)]
        void Unsubscribe(int topicId);
    }
}
